package com.bangbang.blog.service.impl;

import com.bangbang.blog.pojo.TbAdmin;
import com.bangbang.blog.mapper.TbAdminMapper;
import com.bangbang.blog.service.ITbAdminService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 运营商表 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-08-13
 */
@Service
public class TbAdminServiceImpl extends ServiceImpl<TbAdminMapper, TbAdmin> implements ITbAdminService {

    @Autowired
    private TbAdminMapper tbAdminMapper;

    @Override
    public void delete(Long adminId) {
        tbAdminMapper.deleteById(adminId);
    }

    @Override
    public void select(Long adminId) {
        tbAdminMapper.deleteById(adminId);
    }

    @Override
    public void insert(TbAdmin tbAdmin) {
        tbAdminMapper.insert(tbAdmin);
    }
}
